﻿using CameraWin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace ABELGX
{
    [Serializable]
    public class Parameter
    {
        public string Name { get; set; } = "控制器";
        public CarSet Car { get; set; } = new CarSet();
        public List<CameraSet> Cameras { get; set; } = new List<CameraSet>();
        public List<CmdSet> Cmds { get; set; } = new List<CmdSet>();
        public List<PortSet> Ports { get; set; } = new List<PortSet>();
        public List<TransSet> Trans { get;set; } = new List<TransSet>();
        public List<SensorSet> AirSensors { get; set; } = new List<SensorSet>();
        public List<SensorSet> GeneralSensors { get; set; } = new List<SensorSet>();
        public List<SensorSet> UserParameters { get; set; } = new List<SensorSet>();
        /// <summary>
        /// 自定义开关
        /// </summary>
        public List<CustomizeSet> Customize { get; set; } = new List<CustomizeSet>();
        public BatterySet Battery { get; set; } = new BatterySet();
        public VideoSet Video { get; set; } = new VideoSet();
        public ViewSet View { get; set; } = new ViewSet();
        public void Init()
        {
            Cameras.Add(new CameraSet());
            Cmds.Add(new CmdSet());
            Ports.Add(new PortSet());
            Trans.Add(new TransSet());
            AirSensors.Add(new SensorSet());
            GeneralSensors.Add(new SensorSet());
            Customize.Add(new CustomizeSet());
        }
    }
}
